﻿using System.Collections.Generic;

namespace IOA.MES.PdaApi.Models.Response.Auth
{
    /// <summary>
    /// 登录返回对象
    /// </summary>
    public class LoginResponse
    {
        /// <summary>
        /// 账号
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string TrueName { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }
        /// <summary>
        /// Token
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// 岗位列表
        /// </summary>
        public List<Role> Roles { get; set; } = new List<Role>();
    }

    /// <summary>
    /// 岗位
    /// </summary>
    public class Role
    {
        /// <summary>
        /// 岗位ID
        /// </summary>
        public int RoleId { get; set; }
        /// <summary>
        /// 岗位名称
        /// </summary>
        public string RoleName { get; set; }
    }
}
